import 'package:flutter/material.dart';
import 'package:flutter_repo/chapter02/unit04/unit04.dart';
import 'package:flutter_repo/widgets/cell.dart';

class Chapter02 extends StatelessWidget {
  const Chapter02({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('第二章'),),
      body: ListView(
        children: [
          Cell(title: "第四节", routeAction: () {
            Navigator.push(context, MaterialPageRoute(builder: (builder) => Unit04()));
          },)
        ],
      ),
    );
  }
}